package com.data.common.aliyun;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Data
@Component
@ConfigurationProperties(prefix = "crm.aliyun")
public class AliyunFactorConfig {

    /**
     * 二要素配置
     */
    private TwoConfig two;

    /**
     * 四要素配置
     */
    private ThreeConfig three;

    /**
     * 四要素配置
     */
    private FourConfig four;

    @Data
    public static class TwoConfig {
        private String host;
        private String path;
        private String method;
        private String appcode;

    }
    @Data
    public static class ThreeConfig {
        private String host;
        private String path;
        private String method;
        private String appcode;

    }

    @Data
    public static class FourConfig {
        private String host;
        private String path;
        private String method;
        private String appcode;
    }
}
